
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@textlint/types
Advanced tools
Type definition and Typed object package for textlint and textlint rule.
If you import types from @textlint/kernel in your rule module, please use @textlint/types instead of it.
Rule types includes following definition.
Rule types is depended from textlint's rule module and @textlint/kernel.
By contrasts, textlint's rule module should not depended on @textlint/kernel
@textlint/types does not includes implementations.
In other words, It has only type definition file.
Install with npm:
npm install @textlint/types
import type { TextlintSourceCode, TextlintSourceCodeArgs, TextlintSourceCodeLocation, TextlintSourceCodePosition, TextlintSourceCodeRange } from "@textlint/types";
import type { TextlintRuleContextFixCommand } from "@textlint/types";
import type { TextlintRuleContextFixCommandGenerator } from "@textlint/types";
import type { TextlintRuleError, TextlintRuleErrorPadding, TextlintRuleReportedObject } from "@textlint/types";
import type { TextlintRuleSeverityLevel } from "@textlint/types";
import type { TextlintRuleContext, TextlintRuleContextArgs, TextlintRuleContextReportFunction, TextlintRuleContextReportFunctionArgs } from "@textlint/types";
import type { TextlintRuleOptions } from "@textlint/types";
import type { TextlintRuleReporter, TextlintFixableRuleModule, TextlintRuleModule, TextlintRuleReportHandler } from "@textlint/types";
import type { TextlintFilterRuleContext, TextlintFilterRuleShouldIgnoreFunction, TextlintFilterRuleShouldIgnoreFunctionArgs } from "@textlint/types";
import type { TextlintFilterRuleModule, TextlintFilterRuleOptions, TextlintFilterRuleReporter, TextlintFilterRuleReportHandler } from "@textlint/types";
import type { TextlintPluginCreator, TextlintPluginOptions, TextlintPluginProcessor, TextlintPluginProcessorConstructor } from "@textlint/types";
@textlint/types and other module like textlint-rule-helperYou should check if your @textlint/types dependencies is duplicated.
@textlint/types should be deduped.
npm ls @textlint/types
If your dependencies is duplicated, you should update modules that are depended on @textlint/types.
@textlint/types is not semantic versioning.
Because, This library provide only TypeScript definition.
It is hard that we follow a semantic versioning.
See Releases page.
Install devDependencies and Run npm test:
npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureMIT © azu
ESLint is a popular linting tool for JavaScript and TypeScript. Like textlint, it is highly configurable and supports custom rules. However, ESLint is focused on code linting, whereas textlint is designed for natural language text. ESLint provides a similar plugin architecture and type definitions for rule creation.
Remark-lint is a linting tool for Markdown files, part of the unified ecosystem. It offers similar functionality to textlint for Markdown, allowing for custom rules and plugins. While textlint is more general-purpose for text, remark-lint is specifically tailored for Markdown syntax.
Alex is a tool for catching insensitive and inconsiderate writing. It is similar to textlint in that it analyzes natural language text, but it focuses specifically on identifying potentially harmful language. Alex does not provide the same level of extensibility as textlint in terms of custom rule creation.
FAQs
Type definition package for textlint
The npm package @textlint/types receives a total of 494,897 weekly downloads. As such, @textlint/types popularity was classified as popular.
We found that @textlint/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.